package com.sgcc.fj.pmos.common.bean;

import android.text.TextUtils;

import com.sgcc.fj.pmos.common.utils.BigDecimalUtils;

import java.util.List;

public class PackageComparisonDetailBean extends BaseResponse {

    private List<Bean> data;

    public List<Bean> getData() {
        return data;
    }

    public static class Bean {


        private String packageId;
        private String combId;
        private String membersSdId;
        private String oriPackageId;
        private String packageName;
        private String monthDate;
        private String packageType;
        private String startDate;
        private String endDate;
        private String maStringype;
        private String mainSchemeId;
        private String mainType;
        private String mainItemName;
        private String mainItemType;
        private String mainItemValue;
        private String mainItemLastvalue;
        private String mainDifContent;
        private String mainDifType;
        private String mainDifValue;
        private String mainDifLastvalue;
        private String mainRange;
        private String floType;
        private String floSchemeId;
        private String floItemName;
        private String floItemType;
        private String floItemValue;
        private String floItemLastvalue;
        private String floDifContent;
        private String floDifValue;
        private String floDifLastvalue;
        private String floDifType;
        private String floRange;
        private String pNum;
        private String schemeRatio1;
        private String schemeRatio2;
        private String pFee;
        private String mainPrice;
        private String mainLastprice;
        private String floPrice;
        private String floLastprice;
        private String ratioRemark;
        private String schemeRatio;
        private String schemeLastratio;
        private String comtemId;
        private String constrMod;
        private String constrRel;
        private String constrCla;
        private String constrBarg;
        private String minPurCycle;
        private String constrMin;
        private String constrMinCyc;

        public void setMainType(String mainType) {
            this.mainType = mainType;
        }

        public String getpNum() {
            return pNum;
        }

        public void setpNum(String pNum) {
            this.pNum = pNum;
        }

        public String getpFee() {
            return pFee;
        }

        public void setpFee(String pFee) {
            this.pFee = pFee;
        }

        public String getMainType() {
            return  TextUtils.isEmpty(mainType) ? "" :mainType;
        }

        public String getPackageId() {
            return packageId;
        }

        public void setPackageId(String packageId) {
            this.packageId = packageId;
        }

        public String getCombId() {
            return combId;
        }

        public void setCombId(String combId) {
            this.combId = combId;
        }

        public String getMembersSdId() {
            return membersSdId;
        }

        public void setMembersSdId(String membersSdId) {
            this.membersSdId = membersSdId;
        }

        public String getOriPackageId() {
            return oriPackageId;
        }

        public void setOriPackageId(String oriPackageId) {
            this.oriPackageId = oriPackageId;
        }

        public String getPackageName() {
            return packageName;
        }

        public void setPackageName(String packageName) {
            this.packageName = packageName;
        }

        public String getMonthDate() {
            return monthDate;
        }

        public void setMonthDate(String monthDate) {
            this.monthDate = monthDate;
        }

        public String getPackageType() {
            return packageType;
        }

        public void setPackageType(String packageType) {
            this.packageType = packageType;
        }

        public String getStartDate() {
            return startDate;
        }

        public void setStartDate(String startDate) {
            this.startDate = startDate;
        }

        public String getEndDate() {
            return endDate;
        }

        public void setEndDate(String endDate) {
            this.endDate = endDate;
        }

        public String getMaStringype() {
            return maStringype;
        }

        public void setMaStringype(String maStringype) {
            this.maStringype = maStringype;
        }

        public String getMainSchemeId() {
            return mainSchemeId;
        }

        public void setMainSchemeId(String mainSchemeId) {
            this.mainSchemeId = mainSchemeId;
        }

        public String getMainItemName() {
            return mainItemName;
        }

        public void setMainItemName(String mainItemName) {
            this.mainItemName = mainItemName;
        }

        public String getMainItemType() {
            return mainItemType;
        }

        public void setMainItemType(String mainItemType) {
            this.mainItemType = mainItemType;
        }

        public String getMainItemValue() {
            return mainItemValue;
        }

        public void setMainItemValue(String mainItemValue) {
            this.mainItemValue = mainItemValue;
        }

        public String getMainItemLastvalue() {
            return mainItemLastvalue;
        }

        public void setMainItemLastvalue(String mainItemLastvalue) {
            this.mainItemLastvalue = mainItemLastvalue;
        }

        public String getMainDifContent() {
            return mainDifContent;
        }

        public void setMainDifContent(String mainDifContent) {
            this.mainDifContent = mainDifContent;
        }

        public String getMainDifType() {
            return mainDifType;
        }

        public void setMainDifType(String mainDifType) {
            this.mainDifType = mainDifType;
        }

        public String getMainDifValue() {
            return mainDifValue;
        }

        public void setMainDifValue(String mainDifValue) {
            this.mainDifValue = mainDifValue;
        }

        public String getMainDifLastvalue() {
            return mainDifLastvalue;
        }

        public void setMainDifLastvalue(String mainDifLastvalue) {
            this.mainDifLastvalue = mainDifLastvalue;
        }

        public String getMainRange() {
            return mainRange;
        }

        public void setMainRange(String mainRange) {
            this.mainRange = mainRange;
        }

        public String getFloType() {
            return TextUtils.isEmpty(floType) ? "" : floType;
        }

        public void setFloType(String floType) {
            this.floType = floType;
        }

        public String getFloSchemeId() {
            return floSchemeId;
        }

        public void setFloSchemeId(String floSchemeId) {
            this.floSchemeId = floSchemeId;
        }

        public String getFloItemName() {
            return floItemName;
        }

        public void setFloItemName(String floItemName) {
            this.floItemName = floItemName;
        }

        public String getFloItemType() {
            return floItemType;
        }

        public void setFloItemType(String floItemType) {
            this.floItemType = floItemType;
        }

        public String getFloItemValue() {
            return floItemValue;
        }

        public void setFloItemValue(String floItemValue) {
            this.floItemValue = floItemValue;
        }

        public String getFloItemLastvalue() {
            return floItemLastvalue;
        }

        public void setFloItemLastvalue(String floItemLastvalue) {
            this.floItemLastvalue = floItemLastvalue;
        }

        public String getFloDifContent() {
            return floDifContent;
        }

        public void setFloDifContent(String floDifContent) {
            this.floDifContent = floDifContent;
        }

        public String getFloDifValue() {
            return floDifValue;
        }

        public void setFloDifValue(String floDifValue) {
            this.floDifValue = floDifValue;
        }

        public String getFloDifLastvalue() {
            return floDifLastvalue;
        }

        public void setFloDifLastvalue(String floDifLastvalue) {
            this.floDifLastvalue = floDifLastvalue;
        }

        public String getFloDifType() {
            return floDifType;
        }

        public void setFloDifType(String floDifType) {
            this.floDifType = floDifType;
        }

        public String getFloRange() {
            return floRange;
        }

        public void setFloRange(String floRange) {
            this.floRange = floRange;
        }

        public String getPNum() {
            return pNum;
        }

        public void setPNum(String pNum) {
            this.pNum = pNum;
        }


        public String getSchemeRatio1() {
            if (!TextUtils.isEmpty(schemeRatio1)) {
                if (schemeRatio1.contains("~")) {
                    String[] pricelist = schemeRatio1.split("~");
                    if (TextUtils.equals(pricelist[0], pricelist[1])) {
                        return BigDecimalUtils.onKeep3Decimal(pricelist[0]);
                    } else {
                        return BigDecimalUtils.onKeep3Decimal(pricelist[0]) + "~" + BigDecimalUtils.onKeep3Decimal(pricelist[1]);
                    }
                } else {
                    return BigDecimalUtils.onKeep3Decimal(schemeRatio1);
                }
            } else {
                return "--";
            }
        }

        public void setSchemeRatio1(String schemeRatio1) {
            this.schemeRatio1 = schemeRatio1;
        }

        public String getSchemeRatio2() {
            if (!TextUtils.isEmpty(schemeRatio2)) {
                if (schemeRatio2.contains("~")) {
                    String[] pricelist = schemeRatio2.split("~");
                    if (TextUtils.equals(pricelist[0], pricelist[1])) {
                        return BigDecimalUtils.onKeep3Decimal(pricelist[0]);
                    } else {
                        return BigDecimalUtils.onKeep3Decimal(pricelist[0]) + "~" + BigDecimalUtils.onKeep3Decimal(pricelist[1]);
                    }
                } else {
                    return BigDecimalUtils.onKeep3Decimal(schemeRatio2);
                }
            } else {
                return "--";
            }
        }

        public void setSchemeRatio2(String schemeRatio2) {
            this.schemeRatio2 = schemeRatio2;
        }

        public String getPFee() {
            return pFee;
        }

        public void setPFee(String pFee) {
            this.pFee = pFee;
        }

        public String getMainPrice() {
            return mainPrice;
        }

        public void setMainPrice(String mainPrice) {
            this.mainPrice = mainPrice;
        }

        public String getMainLastprice() {
            return mainLastprice;
        }

        public void setMainLastprice(String mainLastprice) {
            this.mainLastprice = mainLastprice;
        }

        public String getFloPrice() {
            return floPrice;
        }

        public void setFloPrice(String floPrice) {
            this.floPrice = floPrice;
        }

        public String getFloLastprice() {
            return floLastprice;
        }

        public void setFloLastprice(String floLastprice) {
            this.floLastprice = floLastprice;
        }

        public String getRatioRemark() {
            return ratioRemark;
        }

        public void setRatioRemark(String ratioRemark) {
            this.ratioRemark = ratioRemark;
        }

        public String getSchemeRatio() {
            return schemeRatio;
        }

        public void setSchemeRatio(String schemeRatio) {
            this.schemeRatio = schemeRatio;
        }

        public String getSchemeLastratio() {
            return schemeLastratio;
        }

        public void setSchemeLastratio(String schemeLastratio) {
            this.schemeLastratio = schemeLastratio;
        }

        public String getComtemId() {
            return comtemId;
        }

        public void setComtemId(String comtemId) {
            this.comtemId = comtemId;
        }

        public String getConstrMod() {
            return constrMod;
        }

        public void setConstrMod(String constrMod) {
            this.constrMod = constrMod;
        }

        public String getConstrRel() {
            return constrRel;
        }

        public void setConstrRel(String constrRel) {
            this.constrRel = constrRel;
        }

        public String getConstrCla() {
            return constrCla;
        }

        public void setConstrCla(String constrCla) {
            this.constrCla = constrCla;
        }

        public String getConstrBarg() {
            return constrBarg;
        }

        public void setConstrBarg(String constrBarg) {
            this.constrBarg = constrBarg;
        }

        public String getMinPurCycle() {
            return minPurCycle;
        }

        public void setMinPurCycle(String minPurCycle) {
            this.minPurCycle = minPurCycle;
        }

        public String getConstrMin() {
            return constrMin;
        }

        public void setConstrMin(String constrMin) {
            this.constrMin = constrMin;
        }

        public String getConstrMinCyc() {
            return constrMinCyc;
        }

        public void setConstrMinCyc(String constrMinCyc) {
            this.constrMinCyc = constrMinCyc;
        }
    }


}
